<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>View Organization</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
    View Organization: <br /><br />
  <stripes:form id="viewOrganization" action="/Organization.action">
    <table id="organizationView" class="plainTable" border="1">
      <tr><td class="label">Name:</td><td>${actionBean.name}</td></tr>
      <tr><td class="label">Type:</td><td>${actionBean.type}</td></tr>
      <tr><td class="label">Contact:</td>
      <td><stripes:link href="/Researcher.action" event="view" target="main">
            <stripes:param name="name" value="${actionBean.contact}"/>${actionBean.contact}
          </stripes:link>
      </td></tr>
      <tr><td class="label">Affiliated Researchers:</td><td>
      	<table>
  	    <c:forEach var="affiliatedResearcher" items="${actionBean.affiliatedResearchersIterator}">
   	     <tr><td>
          <stripes:link href="/Researcher.action" event="view" target="main">
            <stripes:param name="name" value="${affiliatedResearcher}"/>${affiliatedResearcher}
          </stripes:link>
         </td></tr>
 	     </c:forEach>
 	     </table>
      </td></tr>
      <tr><td class="label">Country:</td><td>${actionBean.country}</td></tr>
      <tr><td class="label">Research Keywords:</td><td>
      	<table>
  	     <c:forEach var="researchKeyword" items="${actionBean.researchKeywordsIterator}">
   	     	<tr><td>${researchKeyword}</td></tr>
 	     </c:forEach>
 	    </table>
       </td></tr>
      <tr><td class="label">Research Description:</td><td>${actionBean.researchDescription}</td></tr>
      <tr><td class="label">Home Page:</td><td>${actionBean.homePage}</td></tr>
    </table>
      <stripes:hidden name="name" value="${organization.name}"/>
      <stripes:submit value="Edit" name="edit"/>&nbsp;&nbsp;
      <stripes:submit value="Delete" name="delete"/>
    </stripes:form>
    
  </body>
</html>